package com.zlop;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 * 程序入口
 *
 * @author	曾令鹏
 * @since	1.0
 * @version 2018年5月8日 曾令鹏
 */
@SpringBootApplication
public class Application extends SpringBootServletInitializer {

	/**
	 * 启动方法
	 * @param args
	 * @throws Exception
	 */
	public static void main(String[] args) throws Exception {
		SpringApplication.run(Application.class, args);
	}
	
	/**
	 * 打成war包
	 */
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(this.getClass());
	}
}
